DISCUSSION
The
ATSUGetFontFeatureTypes function obtains a list of the feature types that are available in a font.
The best way to use
ATSUGetFontFeatureTypes is to call it twice:
-
Pass the ID of the font whose feature types you want to obtain in the iFont parameter, NULL for the oTypes parameter, and 0 for the other parameters. ATSUGetFontFeatureTypes returns the size of the feature type array in the oActualTypeCount parameter.
-
Allocate enough space for an array of the returned size, then call the function again, passing a pointer in the oTypes parameter; on return, the pointer references the array of feature types.